<?php
/**
 * Created by PhpStorm.
 * User: wangjiangtao
 * Date: 2022/6/1
 * Time: 19:34
 */

namespace App\Modules\LuckDraw\Models;


use Illuminate\Database\Eloquent\Model;
use Illuminate\Support\Facades\DB;

class DrawManualAwardModel extends Model
{
    protected $table = "luck_draw_manual_award";


    public function addManualAward($data){
        return DB::table($this->table)->insert($data);
    }

    public function delManualAward($id){
        return DB::table($this->table)->where('id',$id)->update(['deleted'=>1]);
    }
}
